/**
 * 
 */
package com.wixc.entity;

import java.util.Date;

import com.google.gson.Gson;

/**
 * @author weichuanxi
 * @date 2016年4月12日
 */
public class NewBean {
	//自增列id
	private int id;
	//标题
	private String title;
	//正文内容
	private String detail;
	//来源
	private String source;
	//图片
	private String imageUrl;
	//类型
	private int typeId;
	//日期
	private java.sql.Date insertTime;

	
	/**
	 * 
	 */
	public NewBean() {
		super();
	}
	public NewBean(int id, String title, String detail, String source, String imageUrl, int typeId, java.sql.Date insertTime) {
		super();
		this.id = id;
		this.title = title;
		this.detail = detail;
		this.source = source;
		this.imageUrl = imageUrl;
		this.typeId = typeId;
		this.insertTime = insertTime;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the detail
	 */
	public String getDetail() {
		return detail;
	}
	/**
	 * @param detail the detail to set
	 */
	public void setDetail(String detail) {
		this.detail = detail;
	}
	/**
	 * @return the source
	 */
	public String getSource() {
		return source;
	}
	/**
	 * @param source the source to set
	 */
	public void setSource(String source) {
		this.source = source;
	}
	/**
	 * @return the imageUrl
	 */
	public String getImageUrl() {
		return imageUrl;
	}
	/**
	 * @param imageUrl the imageUrl to set
	 */
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
	/**
	 * @return the typeId
	 */
	public int getTypeId() {
		return typeId;
	}
	/**
	 * @param typeId the typeId to set
	 */
	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}
	public int getTypeid() {
		return typeId;
	}
	/**
	 * @param typeId the typeId to set
	 */
	public void setTypeid(int typeId) {
		this.typeId = typeId;
	}
	/**
	 * @return the insertTime
	 */
	public java.sql.Date getInsertTime() {
		return insertTime;
	}
	/**
	 * @param insertTime the insertTime to set
	 */
	public void setInsertTime(java.sql.Date insertTime) {
		this.insertTime = insertTime;
	}
	@Override
	public String toString() {
		return new Gson().toJson(this);
	}
	
	
}
